﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ADB_QuanLyThuVien
{
    public abstract class Person
    {
        protected string _id;

        public string Id
        {
            get { return _id; }
            set { _id = value; }
        }
        string _name;

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        DateTime _birthday;

        public DateTime Birthday
        {
            get { return _birthday; }
            set { _birthday = value; }
        }
        string _address;

        public string Address
        {
            get { return _address; }
            set { _address = value; }
        }
        string _email;

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }
        string _phoneNumber;

        public string PhoneNumber
        {
            get { return _phoneNumber; }
            set { _phoneNumber = value; }
        }
        string _sex;

        public string Sex
        {
            get { return _sex; }
            set { _sex = value; }
        }
        public Person()
        {
            _id = null;
            _name = null;
            _birthday = new DateTime();
            _address = null;
            _email = null;
            _phoneNumber = null;
            _sex = null;
        }
        public Person(string id, string name, DateTime birthday, string address, string email, string phoneNumber, string sex)
        {
            _id = id;
            _name = name;
            _birthday = birthday;
            _address = address;
            _email = email;
            _phoneNumber = phoneNumber;
            _sex = sex;
        }
        public override string ToString()
        {
            return Name;
        }
    }
}
